package com.example.question1.controller;

import com.example.question1.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Pactera
 */
@RestController
public class UserController {

    @Autowired
    UserService userService;
    @PostMapping("/")
    public void  save(){
        userService.save();
    }
}
